import {defineStore} from 'pinia'
import {ref} from 'vue'

export const  useUserInfo = defineStore('userInfo',()=>{
    const userInfo = ref()
    const initUserInfo = (info: any) => {
        userInfo.value = info
    }
    const deleteInfo = () => {
        userInfo.value = {}
    }
    return {userInfo, initUserInfo,deleteInfo}
},{
    persist: true
})
